package cn.net.lwj.singledb.control;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexControl {

    @RequestMapping("/")
    public String index(HttpServletRequest request) {
        System.out.println("5555555555555555555");
        return "index";
    }

    @RequestMapping("/page/{page}")
    public String toPage1(HttpServletRequest request, @PathVariable String page) {
        System.out.println("5555555555555555555");
        return page;
    }


}
